package org.happen.android.core.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper;
import com.j256.ormlite.support.ConnectionSource;

public class AccountDbHelper extends OrmLiteSqliteOpenHelper
{
	static final int DB_VERSION = 1;
	static final String DB_NAME = "_account.db";

	//	public static final AccountDbHelper getAccountDbHelper(Context context, AccountInfo info) {
	//		if (info == null) {
	//			throw new RuntimeException("accountinfo is null,no account login.?");
	//		}
	//		return new AccountDbHelper(context, info.account + DB_NAME);
	//	}

	public AccountDbHelper(Context context, String dbName)
	{
		super(context, "test.db", null, DB_VERSION);
	}

	public void onCreate(SQLiteDatabase arg0, ConnectionSource arg1)
	{

	}

	public void onUpgrade(SQLiteDatabase arg0, ConnectionSource arg1, int arg2, int arg3)
	{

	}
}